package com.huishu.coupon.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.huishu.commons.pojo.Result;
import com.huishu.coupon.pojo.model.CouponProductRelationDO;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author generator@ljj
 * @since 2023-04-10
 */
public interface CouponProductRelationService extends IService<CouponProductRelationDO> {

    /**
     * 绑定优惠卷
     * @param id
     * @param couponId
     * @return
     */
    Result bindingCoupon(Long id,  Long couponId);

    /**
     * 解除绑定
     * @param id
     * @param couponId
     * @return
     */
    Result deleteCoupon(Long id, Long couponId);
}
